<!--##########################################
    ##### Autor: Yngrid Coello           #####
    ##### Correo: y-c-@hotmail.com       #####
    ##### Ult. Modif: 26/10/2011         #####
    ##### Pasantias de Grado - USB       #####
    ##### Realización del Sistema: 0Bs   #####
    ##########################################-->

<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('tipoComb/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?nombre='.$form->getObject()->getNombre() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?><br>
<div id="datosServicio">
  <table>
    <tbody>
      <?php echo $form ?>
    </tbody>
  </table>
</div>
<br>
  <center><button type="button" onclick="location.href = '<?php echo url_for('tipoComb/index') ?>'">Regresar</button>
  <input type="submit" value="Guardar" /></center>

</form>
<br>
<?php if ($sf_user->hasFlash('error')): ?>
	<script>
		alert('<?php echo $sf_user->getFlash('error'); ?>');
	</script>
<?php endif; ?>